package org.jiajie.designpatterndemo.template;

/**
 * 使用Game的模版方法play()来演示游戏的定义方式
 *
 * @author jay
 */
public class TemplatePatternDemo {
    public static void main(String[] args) {
//        Game game = new Cricket();
//        game.play();
//        System.out.println();
//        game = new Football();
//        game.play();
        AbstractSetting setting1 = new LocalSetting();
        System.out.println("test = " + setting1.getSetting("test"));
        System.out.println("test = " + setting1.getSetting("test"));
    }
}
